<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<script type="text/javascript">

function checkAddUser(){
		 
		 var judge="${sessionScope.addUserJudge}";
		 if(judge=='addFail'){
			 alert('增加用户失败!');
		 }else if(judge=='addSuccess'){
			 alert('增加用户成功!');
		 }else if(judge=='noPower'){
			 alert('你没有权限增加用户!');
		 }
		 
	 }
</script>
</head>

<body>

	<div>
	  <form action="${pageContext.request.contextPath}/loginController/addUser.do">
	  <div>
	          <span>账号:</span><input type="text" name="tUserName">
	          
	      </div> 
	      <div>
	          <span>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</span>
	      </div> 
	      <div>
	          <span>密码:</span><input type="password" name="tUserPwd">
	          
	      </div> 
	      <div>
	          <span>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</span>
	      </div> 
	      <div>
	         <span>权限:</span>
	          <select name="tTypeName" id="select_box" class="xla_k">
    			<option value="系统管理员">系统管理员</option>
			<option value="财务部主管">财务部主管</option>
			<option value="分公司财务主管">分公司财务主管</option>
		</select>
	          
	      </div> 
	      <div>
	          <span>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</span>
	      </div> 
	      <br>
	  	<div>
	      	<input type="submit" class="am-btn am-btn-primary" value="保存修改" onclick="checkAddUser()">
	  	</div>
	  </form>
	
	
	</div>

</body>
</html>